GO

/****** Object:  Table [dbo].[ItemDisplayByDate]    Script Date: 11/24/2011 07:31:39 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[ItemDisplayByDate](
	[ItemDisplayByDateId] [bigint] IDENTITY(1,1) NOT NULL,
	[ItemId] [bigint] NOT NULL,
	[DateId] [bigint] NOT NULL,
	[Note] [nvarchar](255) NOT NULL,
	[TimeStamp] [timestamp] NOT NULL,
	[ClientCode] [nvarchar](255) NULL,
	[SyncCode] [nvarchar](255) NULL,
	[TimeStampCode] [varbinary](8) NULL,
 CONSTRAINT [PK_ItemDisplayByDate] PRIMARY KEY CLUSTERED 
(
	[ItemDisplayByDateId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[ItemDisplayByDate]  WITH CHECK ADD  CONSTRAINT [FK_ItemDisplayByDate_Material] FOREIGN KEY([ItemId])
REFERENCES [dbo].[Material] ([MaterialId])
GO

ALTER TABLE [dbo].[ItemDisplayByDate] CHECK CONSTRAINT [FK_ItemDisplayByDate_Material]
GO


